#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct student
{
    int num;
    char *name;
    char sex;
    float score;
};

int main()
{

    // num=1,name=楼台,sex=M,score=100.000000
    struct student stu = {1, "楼台", 'M', 100.00};
    printf("num=%d,name=%s,sex=%c,score=%f\n",
           stu.num, stu.name, stu.sex, stu.score);

    // num=1,name=本兮,sex=F,score=100.000000
    stu.name = "本兮";
    stu.sex = 'F';
    printf("num=%d,name=%s,sex=%c,score=%f\n",
           stu.num, stu.name, stu.sex, stu.score);

    system("PAUSE");
    return 0;
}
